//
//  List.m
//  __PRODUCTNAME__
//
//  Created by 鹏飞罗 on 16/08/13
//  Copyright (c) dllo. All rights reserved.
//

#import "List.h"
#import "Mvlist.h"

@implementation List
- (void)setValue:(id)value forKey:(NSString *)key {
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"mvlist"]) {
        NSMutableArray<Mvlist *> *mvListArray = [NSMutableArray array];
        NSArray *mvlistArr = value;
        for (NSDictionary *mvListDic in mvlistArr) {
            Mvlist *mvList = [Mvlist modelWithDictionary:mvListDic];
            [mvListArray addObject:mvList];
        }
        _mvlist = mvListArray;
    }
}
+ (NSDictionary *)objectClassInArray{
    return @{@"mvlist" : [Mvlist class]};
}

@end
